package com.flow.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 返回信息
 * @author wang
 * @2015-12-6
 * BackInfo.java
 * 
 */
public class BackInfo {

	/**
	 * 返回的状态码
	 */
	private String backCode;
	
	/**
	 * 返回的信息
	 */
	private String backMsg;
	
	/**
	 * 返回的参数
	 */
	private List<Object> backDetail;
	
	public BackInfo(){
		
		backDetail = new ArrayList<Object>();
	}

	public BackInfo(String backCode, String backMsg){
		
		backDetail = new ArrayList<Object>();
		this.backCode = backCode;
		this.backMsg = backMsg;
	}
	
	public BackInfo(String backCode, String backMsg, List<Object> backDetail){
		
		if(null == backDetail){
			this.backDetail = new ArrayList<Object>();
		}else{
			this.backDetail = backDetail;
		}
		this.backCode = backCode;
		this.backMsg = backMsg;
	}
	
	public String getBackCode() {
		return backCode;
	}

	public void setBackCode(String backCode) {
		this.backCode = backCode;
	}

	public String getBackMsg() {
		return backMsg;
	}

	public void setBackMsg(String backMsg) {
		this.backMsg = backMsg;
	}

	public List<Object> getBackDetail() {
		return backDetail;
	}

	public void setBackDetail(List<Object> backDetail) {
		this.backDetail = backDetail;
	}
}
